package com.hupu.controller;

import com.hupu.pojo.User;
import com.hupu.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("cons")
public class ConsUserController {

    @Autowired
    private UserService userService;


    @RequestMapping
    public List<User> queryUserByIds(@RequestParam("ids") List<Long> ids) {
        return this.userService.queryUserByIds(ids);
    }

}
